/*
 *英才会硕信息科技有限公司拥有本软件的版权，拥有本软件版权2025   并保留所有权利。
 *Copyright 2021,YCHS Information&Science Technology Co.,Ltd,
 *All rights reserved.
 */
package com.ychs.lawyerback01.mapper;

import com.ychs.lawyerback01.dto.RoleQueryDTO;
import com.ychs.lawyerback01.pojo.RoleEntity;
import com.ychs.lawyerback01.vo.RoleQueryVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author xuehongjin
 * @version 1.0
 * @date 2025/8/22
 */
@Mapper
public interface RoleMapper {
    List<RoleQueryVo> getRolesByCondition(RoleQueryDTO roleQueryDTO);
    int getCountByCondition(RoleQueryDTO roleQueryDTO);
    int addRole(RoleEntity roleEntity);
    int editRole(RoleEntity roleEntity);
    int deleteRoles(List<Long> roleId);
    RoleEntity getRoleById(Long roleId);
    RoleEntity getRoleByRoleKey(String roleKey);

}
